package Pojo;

import java.util.Date;

public class Msgpojo {
    private int mid;
    private String header;
    private String msgtype;
    private String msgmember;
    private String msgtext;
    private Date timer;

    public Msgpojo() {
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public String getMsgmember() {
        return msgmember;
    }

    public void setMsgmember(String msgmember) {
        this.msgmember = msgmember;
    }

    public String getMsgtext() {
        return msgtext;
    }

    public void setMsgtext(String msgtext) {
        this.msgtext = msgtext;
    }

    public Date getTimer() {
        return timer;
    }

    public void setTimer(Date timer) {
        this.timer = timer;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public Msgpojo(int mid, String header, String msgtype, String msgmember, String msgtext, Date timer) {
        this.mid = mid;
        this.header = header;
        this.msgtype = msgtype;
        this.msgmember = msgmember;
        this.msgtext = msgtext;
        this.timer = timer;
    }

    @Override
    public String toString() {
        return "Msgpojo{" +
                "mid=" + mid +
                ", header='" + header + '\'' +
                ", msgtype='" + msgtype + '\'' +
                ", msgmember='" + msgmember + '\'' +
                ", msgtext='" + msgtext + '\'' +
                ", timer=" + timer +
                '}';
    }
}
